package com.fss.application1.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.fss.common.annotation.Excel;
import com.fss.common.core.domain.BaseEntity;

/**
 * 贷款申请对象 loan_application
 * 
 * @author ruoyi
 * @date 2024-12-02
 */
public class LoanApplication1 extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 贷款申请ID */
    private Long applicationId;

    /** 用户ID，关联用户表 */
    @Excel(name = "用户ID，关联用户表")
    private Long userId;

    /** 申请贷款金额 */
    @Excel(name = "申请贷款金额")
    private BigDecimal loanAmount;

    /** 申请的利率（百分比） */
    @Excel(name = "申请的利率", readConverterExp = "百=分比")
    private BigDecimal interestRate;

    /** 贷款期限（月） */
    @Excel(name = "贷款期限", readConverterExp = "月=")
    private Long termInMonths;

    /** 申请状态（0待审核 1审核通过 2审核拒绝） */
    @Excel(name = "申请状态", readConverterExp = "0=待审核,1=审核通过,2=审核拒绝")
    private String applicationStatus;

    /** 申请提交时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "申请提交时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date applicationDate;

    /** 银行名称 */
    @Excel(name = "银行名称")
    private String bankName;

    /** 银行代码 */
    @Excel(name = "银行代码")
    private String bankCode;

    /** 贷款用途 */
    @Excel(name = "贷款用途")
    private String loanPurpose;

    /** 共同申请人ID，关联用户表 */
    @Excel(name = "共同申请人ID，关联用户表")
    private Long coApplicantId;

    public void setApplicationId(Long applicationId) 
    {
        this.applicationId = applicationId;
    }

    public Long getApplicationId() 
    {
        return applicationId;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setLoanAmount(BigDecimal loanAmount) 
    {
        this.loanAmount = loanAmount;
    }

    public BigDecimal getLoanAmount() 
    {
        return loanAmount;
    }
    public void setInterestRate(BigDecimal interestRate) 
    {
        this.interestRate = interestRate;
    }

    public BigDecimal getInterestRate() 
    {
        return interestRate;
    }
    public void setTermInMonths(Long termInMonths) 
    {
        this.termInMonths = termInMonths;
    }

    public Long getTermInMonths() 
    {
        return termInMonths;
    }
    public void setApplicationStatus(String applicationStatus) 
    {
        this.applicationStatus = applicationStatus;
    }

    public String getApplicationStatus() 
    {
        return applicationStatus;
    }
    public void setApplicationDate(Date applicationDate) 
    {
        this.applicationDate = applicationDate;
    }

    public Date getApplicationDate() 
    {
        return applicationDate;
    }
    public void setBankName(String bankName) 
    {
        this.bankName = bankName;
    }

    public String getBankName() 
    {
        return bankName;
    }
    public void setBankCode(String bankCode) 
    {
        this.bankCode = bankCode;
    }

    public String getBankCode() 
    {
        return bankCode;
    }
    public void setLoanPurpose(String loanPurpose) 
    {
        this.loanPurpose = loanPurpose;
    }

    public String getLoanPurpose() 
    {
        return loanPurpose;
    }
    public void setCoApplicantId(Long coApplicantId) 
    {
        this.coApplicantId = coApplicantId;
    }

    public Long getCoApplicantId() 
    {
        return coApplicantId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("applicationId", getApplicationId())
            .append("userId", getUserId())
            .append("loanAmount", getLoanAmount())
            .append("interestRate", getInterestRate())
            .append("termInMonths", getTermInMonths())
            .append("applicationStatus", getApplicationStatus())
            .append("applicationDate", getApplicationDate())
            .append("bankName", getBankName())
            .append("bankCode", getBankCode())
            .append("loanPurpose", getLoanPurpose())
            .append("coApplicantId", getCoApplicantId())
            .append("createBy", getCreateBy())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
